// css函数
@mixin clearfix {
  &:after {
    content: "";
    display: table;
    clear: both;
  }
}

/*多行文本溢出*/
@mixin ellipsisLine($param) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $param;
  -webkit-box-orient: vertical;
}

/*单行文本溢出*/
@mixin ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@mixin triangle($width, $height, $color, $direction) {
  $width: $width/2;
  $color-border-style: $height solid $color;
  $transparent-border-style: $width solid transparent;
  height: 0;
  width: 0;
}